<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        var user = {
            name: "itbaizhan",
            age: 13,
            jobs: ["尚学堂", "sxt"],
            flag: true,
            getname: function () {
                console.log("iwwen");
            },
            container: {
                frontEnd: ["Web前端", "Android", "iOS"],
                backEnd: ["Java", "Python"]
            }

        }
        //对象的读取方式:对象名.属性
        console.log(user.name);
        console.log(user.age);
        for (var i = 0; i < user.jobs.length; i++) {
            console.log(user.jobs[i]);
        }
        user.getname();


        user.container.frontEnd // ["Web前端","Android","iOS"]
    </script>
</body>

</html>